﻿using System;
using System.Net.Mail;

namespace Csharp第二次作业
{
    class Program
    {
        static void Main(string[] args)
        {
            const int i=10;
            Console.WriteLine("i" + "=" + i);

            //if else 练习
            
            if (true)
            {
                Console.WriteLine("10大于9");
            }

            var t = 2 > 1;
            if (t)
            {
                Console.WriteLine("2真的大于1");
            }
            else
            {
                Console.WriteLine("2大于1是假的");
            }


            int j = 3;
            if (j > 5)
            {
                Console.WriteLine("j小于5");
            }
            else if (j > 4)
            {
                Console.WriteLine("j大于4");
            }
            else if (j > 3)
            {
                Console.WriteLine("j>3");
            }
            else
            {
                Console.WriteLine("哥们你比3还小");
            }



            //switch 练习
            int score = 87;
            switch (score/10)
            {
                case 10:
                case 9:
                    Console.WriteLine("优秀");
                    break;
                case 8:
                case 7:
                    Console.WriteLine("良好");
                    break;
                case 6:
                    Console.WriteLine("及格");
                    break;
                default:
                    Console.WriteLine("不及格");
                    break;
            }

        }
       
     

     

    }
}
